Sai Teja: Hide owner message upload after image selection#5169
Open
saitejakaasoju wants to merge 1 commit intodevelopmentfrom
Open
Sai Teja: Hide owner message upload after image selection#5169saitejakaasoju wants to merge 1 commit intodevelopmentfrom
saitejakaasoju wants to merge 1 commit intodevelopmentfrom
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Implements the follow-up owner message UI fix to hide the image upload section once a valid photo is selected in the owner message modal. This is a frontend-only change related to the existing owner message flow and prevents the modal from continuing to show upload controls after the message has already become an image payload.
Implements # (PRIORITY HIGH) Hide image payload when a photo is chosen for owner message
Related PRS (if any):
This is a frontend-only PR.
It is a follow-up to the earlier owner message work introduced in PR #4769.
Main changes explained:
src/components/OwnerMessage/OwnerMessage.jsxto detect image-based owner messages with a stable string-based helper instead of the previous regex-based check.src/components/OwnerMessage/OwnerMessage.jsxto hide the image upload text, size note, and file input once a valid image has been selected.src/components/OwnerMessage/OwnerMessage.jsxto add an accessible label to the image input for clearer targeting and testability.src/components/OwnerMessage/__tests__/OwnerMessage.test.jsxto add a focused test that verifies the upload controls disappear after image selection.How to test:
npm installand...to run this PR locallyScreenshots or videos of changes:
Screen.Recording.2026-04-10.at.2.52.00.PM.mov
Note:
Include the information the reviewers need to know.